package com.example.travelservlet.province.service;

import com.example.travelservlet.entity.CollectionScenery;
import com.example.travelservlet.entity.Province;
import com.example.travelservlet.province.repository.ProvinceRepository;
import com.example.travelservlet.user.domain.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 30697
 */
@Service
public class ProvinceServiceImpl implements ProvinceService{
    @Autowired
    private ProvinceRepository provinceRepository;


    @Override
    public List<Province> findProvince() {
        List<Province> provinces = provinceRepository.findAll();
        return provinces;
    }
}
